package com.ruoyi.base.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 物料管理对象 t_materials
 * 
 * @author YwaiX
 * @date 2024-10-25
 */
public class Materials extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 物料编号 */
    @Excel(name = "物料编号")
    private String materialNo;

    /** 物料名称 */
    @Excel(name = "物料名称")
    private String materialName;

    /** 规格型号(中,大,超大) */
    @Excel(name = "规格型号(中,大,超大)")
    private String specification;

    /** 获取方式(采购) */
    @Excel(name = "获取方式(采购)")
    private Long getMode;

    /** 质检比例 */
    @Excel(name = "质检比例")
    private Long checkRatio;

    /** 预警值 */
    @Excel(name = "预警值")
    private Long reorderPoint;

    /** 单位id */
    @Excel(name = "单位id")
    private Long unitId;

    /** 是否 删除 */
    @Excel(name = "是否 删除")
    private Long status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMaterialNo(String materialNo) 
    {
        this.materialNo = materialNo;
    }

    public String getMaterialNo() 
    {
        return materialNo;
    }
    public void setMaterialName(String materialName) 
    {
        this.materialName = materialName;
    }

    public String getMaterialName() 
    {
        return materialName;
    }
    public void setSpecification(String specification) 
    {
        this.specification = specification;
    }

    public String getSpecification() 
    {
        return specification;
    }
    public void setGetMode(Long getMode) 
    {
        this.getMode = getMode;
    }

    public Long getGetMode() 
    {
        return getMode;
    }
    public void setCheckRatio(Long checkRatio) 
    {
        this.checkRatio = checkRatio;
    }

    public Long getCheckRatio() 
    {
        return checkRatio;
    }
    public void setReorderPoint(Long reorderPoint) 
    {
        this.reorderPoint = reorderPoint;
    }

    public Long getReorderPoint() 
    {
        return reorderPoint;
    }
    public void setUnitId(Long unitId) 
    {
        this.unitId = unitId;
    }

    public Long getUnitId() 
    {
        return unitId;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("materialNo", getMaterialNo())
            .append("materialName", getMaterialName())
            .append("specification", getSpecification())
            .append("getMode", getGetMode())
            .append("checkRatio", getCheckRatio())
            .append("reorderPoint", getReorderPoint())
            .append("unitId", getUnitId())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
